.chat-container {
  width: 100vw;
  overflow: hidden;
  box-sizing: border-box;

  &.show-keyboard {
    //padding-bottom: 0 !important;

    .chat-board {
      padding-bottom: 0 !important;
    }
  }
}

.chat-list {
  width: 100%;
  transition: all ease .2s;
  padding-bottom: 30rpx;
}

.chat-board {
  position: fixed;
  z-index: 999;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #f5f5f5;
  padding-bottom: 0;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  transition: all ease .2s;

  .chat-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 110rpx;
    box-sizing: border-box;
    background-color: #f5f5f5;
    overflow: hidden;

    .icon-input {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 110rpx;
      height: 100%;
      flex-shrink: 0;
      background-size: 52rpx 52rpx;
      background-position: center center;
      background-repeat: no-repeat;

      &.emoji {
        background-image: url('');
      }

      &.menu {
        background-image: url('');
      }
    }

    .chat-editor {
      flex: 1;
      height: 78rpx;
      overflow: hidden;
      background-color: #ffffff;
      border-radius: 16rpx;
      min-height: auto;
      padding: 20rpx;
      box-sizing: border-box;
    }
  }

  .chat-menus {
    position: relative;
    width: 100%;
    height: 460rpx;
    overflow: hidden;
    transition: all ease .2s;

    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: -50%;
      width: 200%;
      height: 2rpx;
      background-color: #d6d6d6;
      transform: scale(0.5);
    }

    .board-tools {
      position: relative;
      height: 68rpx;
      background-color: #ffffff;

      .item-tools {
        width: 90rpx;
        height: 100%;
        background-size: 60rpx 60rpx;
        background-position: center center;
        background-repeat: no-repeat;

        &.active {
          background-color: #f5f5f5;
        }

        &.emoji {
          background-image: url('./images/e10.png');
        }
      }

      .send-tools {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100rpx;
        height: 68rpx;
        font-size: 29rpx;
        color: #ffffff;
        background-color: #f02f35;
      }
    }

    .menus-list {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      width: 100%;
      height: 100%;
    }

    .item-menus {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: calc(750rpx / 4);
      height: calc(750rpx / 4);

      .item-icon {
        width: 110rpx;
        height: 110rpx;
        background-color: #ffffff;
        border-radius: 18rpx;
        background-size: 60rpx 60rpx;
        background-repeat: no-repeat;
        background-position: center center;

        &.photo {
          background-image: url('');
        }

        &.photo-lib {
          background-image: url('');
        }

        &.video {
          background-image: url('');
        }

        &.video-lib {
          background-image: url('');
        }

        &.order {
          background-image: url('');
          background-size: 70rpx 70rpx;
        }

        &.history {
          background-image: url('');
        }
      }

      .item-label {
        margin-top: 10rpx;
        color: #656666;
        font-size: 22rpx;
      }
    }
  }
}

.board-popup {
  width: 100%;
  &--title {
    color: #151515;
    font-size: 28rpx;
    font-weight: bold;
    padding: 24rpx 30rpx;
  }
  &--tab {
    display: flex;
    align-items: center;
    padding: 0 24rpx;
    height: 80rpx;
    .tab-item {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      height: 100%;
      color: #141514;
      font-size: 28rpx;
      & + .tab-item {
        margin-left: 40rpx;
      }
      &.active {
        color: #f61f27;
        &::after {
          content: ' ';
        }
      }
      &::after {
        content: none;
        position: absolute;
        bottom: 0;
        width: 60rpx;
        height: 4rpx;
        background-color: #f61f27;
        border-radius: 2rpx 2rpx 0 0;
      }
    }
  }
  &--scroll {
    width: 100%;
    height: calc(950rpx - 180rpx - constant(safe-area-inset-bottom));
    height: calc(950rpx - 180rpx - env(safe-area-inset-bottom));
  }
  .order-list {
    width: 100%;
    .order-item {
      width: 100%;
    }
    .order-sn-date {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 78rpx;
      padding: 0 30rpx 0 38rpx;
      box-sizing: border-box;
      color: #999999;
      font-size: 24rpx;
    }
    .goods-info {
      display: flex;
      align-items: center;
      width: 710rpx;
      height: 180rpx;
      background-color: #f4f4f5;
      margin: 0 20rpx;
      border-radius: 10rpx;
      padding-left: 30rpx;
      box-sizing: border-box;
      .goods-image {
        width: 120rpx;
        height: 120rpx;
        border-radius: 4rpx;
      }
      .goods-other {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 520rpx;
        height: 120rpx;
        margin-left: 20rpx;
      }
      .goods-name {
        display: block;
        width: 100%;
        width: 100%;
        height: 54rpx;
        color: #151516;
        font-size: 28rpx;
        line-height: 28rpx;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .goods-price-status {
        display: flex;
        justify-content: space-between;
        margin-top: 28rpx;
      }
      .goods-status {
        color: #999999;
        font-size: 24rpx;
      }
    }
    .goods-hr {
      height: 20rpx;
      border-bottom: 2rpx dashed #d7d6d7;
      box-sizing: border-box;
      width: 710rpx;
      margin: 0 20rpx;
    }
  }

  .goods-list {
    width: 100%;
    .goods-item {
      display: flex;
      align-items: center;
      position: relative;
      width: 100%;
      height: 210rpx;
      padding: 0 20rpx;
      box-sizing: border-box;
      .goods-image {
        display: block;
        width: 150rpx;
        height: 150rpx;
        border-radius: 4rpx;
        margin-left: 10rpx;
      }
      .goods-other {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 520rpx;
        height: 150rpx;
        margin-left: 20rpx;
      }
      .goods-name {
        display: block;
        width: 100%;
        width: 100%;
        height: 54rpx;
        color: #151516;
        font-size: 28rpx;
        line-height: 28rpx;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      .goods-price {
        display: flex;
        justify-content: space-between;
        margin-top: 54rpx;
      }
      .goods-hr {
        position: absolute;
        left: 20rpx;
        bottom: 0;
        height: 0;
        border-bottom: 2rpx dashed #d7d6d7;
        box-sizing: border-box;
        width: 710rpx;
      }
    }
  }
}

.load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50rpx;
  margin-top: 20rpx;
  &.chat {
    height: 100rpx;
    margin-top: 0;
  }
}
